home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Software Contest 3
/
FM Towns Software Contest 3.iso
/
exp
/
telop
/
denko
/
source
/
tif_read.asm
< prev
Wrap
Assembly Source File
|
1994-01-07
|
1KB
|
73 lines
;******************************************************
; opening_put proc
; タイトル表示
;******************************************************
opening_put proc
lea edx,openingpath
call file_read
call expand
ret
openingpath db 'a:\opening.tif',00h
opening_put endp
;******************************************************
; board_put proc
; 背景表示
;******************************************************
board_put proc
lea edx,boardpath
call file_read
call expand
ret
boardpath db 'a:\board.tif',00h
board_put endp
;******************************************************
; file_read proc
; グラフィックデータ読み出し
;******************************************************
file_read proc
mov ax,3d00h
int 21h
jc #ret
mov bx,ax
mov ax,4200h
mov ecx,0
mov edx,512
int 21h
mov ecx,154112-512
lea edx,buffer
mov ax,3f00h
int 21h
mov ax,3e00h
int 21h
#ret: ret
file_read endp
;******************************************************
; expand proc
; データをVRAMに展開する
;******************************************************
expand proc
sub eax,eax
mov ebx,eax
mov ecx,ebx
mov edx,ecx
lea esi,buffer
mov edi,40000h
push 120h
pop es
#000: mov eax,dword ptr ds:[esi]
add esi,4
mov dword ptr es:[edi+edx],eax
add edx,4
cmp edx,320*2
jnz #000
mov edx,0
add edi,512*2
inc ecx
cmp ecx,240
jnz #000
ret
expand endp